package no.uib.hplims.views.home;

import uk.ac.ebi.kraken.uuw.services.remoting.UniProtJAPI;
import no.uib.hplims.tools.Icons;
import no.uib.hplims.views.AbstractParentTab;

import com.vaadin.ui.Label;

public class Home extends AbstractParentTab {

	private static final long serialVersionUID = 1359051994186145267L;

	private static String caption = "Home";

	public Home() {
		super(caption, Icons.homeIcon16);

		init();
	}

	@Override
	protected void init() {
		getMainTab().addComponent(new Label("Welcome to HP LIMS"));
		getMainTab().addComponent(
				new Label("This version utilizes the"
						+ " following version of the UniProtJAPI: "
						+ UniProtJAPI.factory.getVersion()));
	}

	@Override
	public String toString() {
		return caption;
	}

	public void activated(Object... params) {
		// TODO Auto-generated method stub

	}

	public void deactivated(Object... params) {
		// TODO Auto-generated method stub

	}

}
